<script>
	export default {
		
		onLaunch: function() {
			console.log('App Launch')
			// this.chushi()
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		globalData: { //全局
			Tokey: '', //tokey
			name: '', //名字
			personal: [], //登入后接受的数据
			methods: [], //历史记录
			title: '', //搜索值
			getGoodsPage: [], //搜索商品数据
			seeekhistory: [], //搜索历史记录
			appraisePage: [], //评论
		},
		
		methods:{
			chushi() {
					if (getApp().globalData.Tokey.length == 0) {
						uni.showModal({
							title: '提示',
							content: '你还没登入',
							success(res) {
								if (res.confirm) {
									uni.navigateTo({
										url: '/pages/long/long'
									})
								} else if (res.cancel) {}
							}
						})
					} else {}
				},
			//全局数据
		}
		
	}
</script>

<style>
	/*每个页面公共css */
</style>
